define(function () {
    var planReturnVisit = {
        name: 'plan-return-visit',
        template:
        '<div class="owner-li3">' +
        '    <p>' +
        '        <span>' +
        '            <em>回访人：</em>{{dataObj.visitingPerson}}</span>' +
        '        <span>' +
        '            <em>回访时间：</em>{{dataObj.revisitDays}}</span></p>' +
        '    <p>' +
        '        <span>' +
        '              <em>回访类型：</em>{{revisitType}}</span></p>' +
        '        <span v-if="show">' +
        '              <em>带看状态：</em>{{dataObj.takeALookAtTheStatus}}</span>' +
        '    <strong class="perfect">完善回访计划</strong>' +
        '</div>',
        props: {
            dataObj: {
                type: Object,
                default: function () {
                    return {}
                }
            }
        },
        computed: {
            revisitType: function () {
                var releaseMsg = ''
                switch (this.dataObj.revisitType) {
                    case 0: {
                        this.show = true
                        releaseMsg = '带看回访'
                        break
                    }
                    case 1: {
                        releaseMsg = '电话回访'
                        break
                    }
                }
                return releaseMsg
            }
        },
        data: function () {
            return {
                show: false
            }
        }
    }
    return planReturnVisit
})
